package com.csu.mypetstore.service;

import com.csu.mypetstore.domain.User;
import com.csu.mypetstore.persistence.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User logIn(User user){
        return userMapper.getUserByUsernameAndId(user);
    }

}
